package com.chennan.springsource.lifecycle.lifebean;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

/**
 * @author chennan
 * @create 2022-03
 */
//@Component
public class MyBeanNameAware implements BeanNameAware {

    @Override
    public void setBeanName(String name) {
        System.out.println("MyBeanNameAware setBeanName 入参为:"+name);
    }
}
